<?php

class Route {

    public static function getRoutes($key = NULL) {
    	
    	$routes = array(
			            'faq' 				=> array('controller' => 'HomeController', 		'method' => 'index'),
			            'faleconosco'		=> array('controller' => 'ContatoController', 	'method' => 'index'),
    					'indique'			=> array('controller' => 'PaginasController', 	'method' => 'index', 'pagina' => 'indique'),
    					'privacidade'		=> array('controller' => 'PaginasController', 	'method' => 'index'),
    					'sobre'				=> array('controller' => 'PaginasController', 	'method' => 'index')
			        );
    	
    	if(!is_null($key)){
    		if(key_exists($key, $routes)){
    			return $routes[$key];
    		}
    	}
    	
        return $routes;
    }

}
?>



